//
//  SimpleMapViewViewController.h
//  SimpleMapView
//
//  Created by Stefan Ivanov on 10/11/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/Mapkit.h>
#import <CoreLocation/CoreLocation.h>
#import <AudioToolbox/AudioToolbox.h>
#import "BarView.h"
#import "SimpleMapViewAppDelegate.h"
#import "CheckPoint.h"

@interface SimpleMapViewViewController : UIViewController <CLLocationManagerDelegate,MKAnnotation> {
    MKMapView *mapView;
    CLLocationManager *locManager;
    
    //location and heading info variables
    CLLocationDirection heading;
    CLLocation *currentLocation;
    
    //a bar for the top screen information about amount of poins etc.
    BarView *bar;
    
    //app delegate variable to be used for accessing location/heading info from other classes
    SimpleMapViewAppDelegate *appDelegate;
    
    //alert view when being hunted down by a hunter
    UIView *redView;
    
    //a variabe used to set the zooming level only the first time we get location update after a map view appears
    BOOL isFirstLocationUpdate;
    
}

@property (nonatomic,retain) IBOutlet MKMapView *mapView;
@property (nonatomic,retain) CLLocationManager *locManager;
@property (assign) CLLocationDirection heading;
@property (nonatomic, assign) CLLocation *currentLocation;
@property (nonatomic, retain) BarView *bar;
@property (nonatomic, retain) SimpleMapViewAppDelegate *appDelegate;
@property (nonatomic, retain) UIView *redView;
@property (assign) BOOL isFirstLocationUpdate;

- (IBAction)changePoints:(id)sender;
- (IBAction)huntedDown:(id)sender;
- (IBAction)placePins:(id)sender;

@end
